package com.globallogic.vkulyk.SSHTool;

import static org.junit.Assert.*;

import org.junit.*;

public class Unit_CommandExecutionDataKeeper extends SSHToolTester {
	private static final String COMMAND_NOT_EQUALS = "Command not equals";
	private static final String ACTION_TYPE_NOT_EQUALS = "Action type not equals";
	private static final String USER_NOT_EQUALS = "User not equals";
	private static final String PASSWORD_NOT_EQUALS = "Password not equals";
	private String type = "execute_command";
	private CommandExecutionDataKeeper commandData = null;

	@Before
	public void setup() {
		setVarsFromPropertiesFile("testData/testing.properties");
		commandData = new CommandExecutionDataKeeper(type, user, password,
				command);
	}

	@Test
	public void shouldReturnCorrectCommand_whenCallGetCommand() {
		assertEquals(COMMAND_NOT_EQUALS, command, commandData.getCommand());
	}
	
	@Test
	public void shouldReturnCorrectType_whenCallGetType() {
		assertEquals(ACTION_TYPE_NOT_EQUALS, type, commandData.getType());
	}

	@Test
	public void shouldReturnCorrectUser_whenCallGetUser() {
		assertEquals(USER_NOT_EQUALS, user, commandData.getUser());
	}

	@Test
	public void shouldReturnCorrectPassword_whenCallGetPassword() {
		assertEquals(PASSWORD_NOT_EQUALS, password, commandData.getPassword());
	}

}
